<%@ page contentType="text/html;charset=utf-8"%>
<%@ include file="/login/common/taglibs.jsp"%>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="pragma" content="no-cache" /> 

<SCRIPT LANGUAGE="JavaScript">
<!--
	function save(type){

		
		var form = document.forms[0];

		var action = form.action + "&type="+type;

		
		form.action = action;

		form.submit();
	}
//-->
</SCRIPT>
</head>

<body>

	<html:form action="/joke/obj.do?method=saveOrUpdate0" method="post"  >

<TABLE border="1" cellspacing="0" cellpadding="3" >
<TR>
	<TD>标题</TD>
	<TD><html:hidden property="id" />
		<html:text property="joke_title" size="60"/>
	</TD>
</TR>


<TR>
	<TD>正文</TD>
	<TD>
		<textarea name="joke_content" cols="120" rows="20">${jokeObjForm.joke_content}</textarea>
	</TD>
</TR>

<TR>
	<TD>点击数</TD>
	<TD>
		<html:text property="click_number" />
	</TD>
</TR>
<TR>
	<TD>状态</TD>
	<TD>
		<html:text property="auditing" />
	</TD>
</TR>

<TR>
	<TD>分类</TD>
	<TD>
		<html:select property="category_id" style="WIDTH:200px">
			<c:forEach var="obj" items="${listJc}" varStatus="status" >
				<html:option value="${obj.id}" >${obj.category_name}(${obj.joke_number})</html:option>
			</c:forEach>
		</html:select>
	</TD>
</TR>

<TR>
	<TD>笑话站</TD>
	<TD>
		<html:text property="web_id" />
	</TD>
</TR>


  <tr>
	<td colspan="2">
		<input type="submit" name="submit" value="保  存" onclick="javascript:save('0')">
		<input type="submit" name="submit" value="保存为正式数据" onclick="javascript:save('1')">
		<input type="reset" name="reset" id="reset" value="重  置"/>
		<input type="button" name="button" onclick="javascript:history.go(-1);" value="返  回"/>

		</td>
	</td>
  </tr>



</TABLE>

</html:form>

</body>
</html>